<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div class="form-group">
	<label class="col-sm-2 control-label">帐号 <strong class="driverVerifcateRequired">*</strong></label>
	<div class="col-sm-4">
		<input class="form-control" name="username" type="text" maxlength="32" asd-valid="require"
			placeholder="root" />
	</div>
	<label class="col-sm-2 control-label">密码 <strong class="driverVerifcateRequired">*</strong></label>
	<div class="col-sm-4 ">
		<input class="form-control" name="password" type="password" maxlength="32" asd-valid="require" />
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">名称 <strong class="driverVerifcateRequired">*</strong></label>
	<div class="col-sm-10">
		<input class="form-control" name="name" type="text" value="" placeholder="ASD_SQL" maxlength="32" asd-valid="require" />
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">主键 <strong class="driverVerifcateRequired">*</strong></label>
	<div class="col-sm-10">
		<input class="form-control" name="primaryKey" type="text" maxlength="32" asd-valid="require" 
			placeholder="primaryKey" />
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">SQL <strong class="driverVerifcateRequired">*</strong></label>
	<div class="col-sm-10">
		<textarea name="sql" class="form-control" maxlength="1024" asd-valid="require" rows="10">SELECT T1.* FROM USER T1 </textarea>
	</div>
</div>
<div class="form-group">
	<div class="col-sm-12 text-right">
		<a id="beautifySql" href="javascript:;"><span class="fa fa-magic fa-1x fa-flip-horizontal fastsyncer_pointer" title="美化SQL"></span>美化SQL</a>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">URL <strong class="driverVerifcateRequired">*</strong></label>
	<div class="col-sm-10">
		<textarea name="url" class="form-control" maxlength="128" asd-valid="require" rows="5">jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&amp;characterEncoding=UTF8&amp;useSSL=true</textarea>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">驱动 </label>
	<div class="col-sm-10">
		<input class="form-control" readonly="true" name="driver" type="text" value="com.mysql.jdbc.Driver" />
	</div>
</div>

<script type="text/javascript">
	//加载驱动JS
	$.getScript($basePath + '/style/js/driver/driverAddSqlMysql.js');
</script>